package main

import (
	"fmt"
	"math"
)

func main() {
	var a int = 123
	var b int = 456
	println(a + b)
	println(a - b)
	println(a * b)
	if b != 0 {
		println(a / b)
	}
	//println(a / 0)
	// 取余
	println(a % b)
	//println(a % 0)

	var c float64 = 12.3
	//println(a + c) // 同类型才可以
	println(a + int(c))
	println(float64(a) + c)

	// var d int32 = 12
	//println(a + d) // 不兼容

	ceil := math.Ceil(123)
	fmt.Println(ceil)

	//String()
	Byte()

}
